-- GENERATED SPELL FOR [Kaganishu] --


function spell0_25427(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(15744,pUnit)
pUnit:RegisterEvent('Sorts_25427', 6306, 1)
end

function spell1_25427(pUnit, Event) --@Fire Nova Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(44257,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_25427', 1, 1)
end

function spell2_25427(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25427', 3000, 1)
end

function Sorts_25427(pUnit, Event)
local choix_sorts_25427 = math.random(0, 2)
if choix_sorts_25427 == 0 then
pUnit:RegisterEvent('spell0_25427', 1, 1)
end
if choix_sorts_25427 == 1 then
pUnit:RegisterEvent('spell1_25427', 1, 1)
end
if choix_sorts_25427 == 2 then
pUnit:RegisterEvent('spell2_25427', 1, 1)
end
end

function mob25427_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25427', math.random(1500, 3000), 1)
end

function mob25427_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25427_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25427_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25427, 1, 'mob25427_Action')
RegisterUnitEvent(25427, 2, 'mob25427_Leave')
RegisterUnitEvent(25427, 3, 'mob25427_Kill')
RegisterUnitEvent(25427, 4, 'mob25427_Die')
